
import request from '@/api/base'

export function getMember(page, limit) {

    // return request.get('/huiyuan/getallgrade?pagesize=' + page + '&i=' + limit)
    return request.get(`/huiyuan/getqbfenye?i=${page}&pagesize=${limit}`)
}


export function selectnameMe(data) {
    const params = {
        address: data.address,
        memo: data.memo,
        name: data.name,
        sex: data.sex,
        q: data.q,
        phone: data.phone,
        i: data.i,
        pagesize: data.pagesize
    };
    return request.get('/huiyuan/mohu3', { params })
}
export function selectId(data) {
    const params = {
        id: data.id,
        i: data.i,
        pagesize: data.pagesize
    };
    return request.get('/huiyuan/mohuid', { params })
}
export function delMember(data) {
    return request.get('/huiyuan/deletegrade?id=' + data)
}
export function addMember(param) {
    return request.post('/huiyuan/insertgrade', param)
}

export function updataMember(param) {
    return request.post('/huiyuan/upgrade', param)
}
